package com.gnerv.sylvanas.business.manage.model.bo;

import com.gnerv.sylvanas.business.manage.model.entity.DictItem;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @author Gnerv LiGen
 */
@Data
public class DictItemBO {

    private String ukId;
    private String dictUkId;
    private String code;
    private String name;
    private String value;
    private String status;
    private Integer sort;

    public DictItem toDictItem() {
        DictItem dictItem = new DictItem();
        BeanUtils.copyProperties(this, dictItem);
        dictItem.setGmtCreate();
        dictItem.setGmtModified();
        return dictItem;
    }

}